package com.team12.hotel404.service;

import com.team12.hotel404.domain.Order;
import com.team12.hotel404.domain.User;

import java.util.List;

public interface OrderService {
    List<Order> listAllOrder();

    Order findOrderById(Integer id);

    Order findOrderByUser(User user);

    List<Order> findAll();

    List<Order> search(Integer id);

    List<Order> searchOne(Integer uid);

    List<Order> OrderDetails(Integer id);

    void insertOrder(Order order1);

    Integer selectLastInsertId();
}
